#ifndef __MQ2_DEVICE_H__
#define __MQ2_DEVICE_H__

#include "main.h"
#include "driver_mq2.h"

typedef struct mQ2Dev
{
    char *name;
    int (*Init)(struct mQ2Dev *pMQ2Dev);
    int (*GetValue)(struct mQ2Dev *pMQ2Dev, uint32_t *pData, uint32_t Length);
}mQ2Dev, *pMQ2Dev;


pMQ2Dev GetMQ2Device(char *name);

#endif
